package ft.app.gtig.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import com.haulmont.cuba.core.entity.StandardEntity;
import com.haulmont.chile.core.annotations.NamePattern;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@NamePattern("%s %s %s %s|id,title,video,cover")
@Table(name = "GTIG_VIDEO")
@Entity(name = "gtig$Video")
public class Video extends StandardEntity {
    private static final long serialVersionUID = -3650305157798552969L;

    @Column(name = "TITLE", nullable = false)
    protected String title;

    @Column(name = "VIDEO", nullable = false, length = 333)
    protected String video;


    @Column(name = "COVER", nullable = false, length = 333)
    protected String cover;

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getCover() {
        return cover;
    }


    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getVideo() {
        return video;
    }


}